package com.bdqn.t350.service;

import com.bdqn.t350.dao.PetDao;
import com.bdqn.t350.dao.impl.PetDaoImp;
import com.bdqn.t350.entity.Page;
import com.bdqn.t350.entity.Pet;

import java.util.List;

public class PetServiceImp implements PetService {

    PetDao petDao = new PetDaoImp();

    @Override
    public List<Pet> getListBiz(Pet petEntity) {
        return petDao.getList(petEntity);
    }

    @Override
    public List<Pet> findByPetBreedBiz(String petBreed) {
        return null;
    }

    @Override
    public int countBiz(String petName) {
        return 0;
    }

    @Override
    public int addPetBiz(Pet pet) {
        return 0;
    }

    @Override
    public int tableCountBiz() {
        return petDao.tableCount();
    }

    @Override
    public List<Pet> getPageListBiz(Page page) {
        return petDao.getPageList(page);
    }

    @Override
    public int updateBySexBiz(Pet pet) {
        return petDao.updateBySex(pet);
    }
}
